--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit e022d469f83b3074e9b4d8dd7acedf1081696718
Parents : 19d1d85
Author : faragher <faragher@betweentheborders.com>
Date : 2023-11-29T03:23:35-06:00
Made save paths relative
Changes
Diff
diff --git a/nomadnet/ui/textui/Browser.py b/nomadnet/ui/textui/Browser.py
index 54afaa7..fcb7492 100644
--- a/nomadnet/ui/textui/Browser.py
+++ b/nomadnet/ui/textui/Browser.py
@@ -976,7 +976,10 @@ class Browser:
try:
file_name = request_receipt.response[0]
file_data = request_receipt.response[1]
- file_destination = self.app.downloads_path+"/"+file_name
+ file_destination_name = file_name.split("/")
+ file_destination_name = file_destination_name[len(file_destination_name)-1]
+ file_destination = self.app.downloads_path+"/"+file_destination_name
+
counter = 0
while os.path.isfile(file_destination):
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────